RESPR

Syntax: RESPR (bytes) 
Location: QL ROM

This function sets aside a chunk of resident procedure space for use by a program and returns the address of the start of that memory.

When used, the RESPR function will search for an area in RAM which is currently unused and which is at least bytes long. If there is insufficient space in memory, then 'Out of Memory' is reported.

Memory set aside using RESPR cannot later be released and used for other purposes.

Example:
100 x=RESPR(10*1024):LBYTES flp1_Toolkit,x:CALL x

NOTE:
If a task is running in memory (eg. with EXEC), when RESPR is used, the resident procedure space cannot be accessed and the error 'Not Complete' is reported. However, some Toolkits, SMS and Minerva rewrite the RESPR command so that it will access the common heap if the resident procedure space cannot be accessed.

CROSS-REFERENCE:
Please also see ALCHP which allocates memory from the common heap, which can be accessed when tasks are running in memory.
Also see RESERVE and GRAB which are similar to ALCHP.
It is also worth looking at RESFAST.
